//
// Created by 吴锐 on 2022/2/25.
//

#include "iostream"

using namespace std;

class Building {
    friend void goodGay(Building* building);

public:
    string sittingRoom;

private:
    string bedRoom;

public:
    Building(){
        this->sittingRoom = "客厅";
        this->bedRoom = "卧室";
    }
};

void goodGay(Building* building){
    cout << "好基友的全局函数 正在访问" << building->sittingRoom << endl;
    cout << "好基友的全局函数 正在访问" << building->bedRoom << endl;
}

void test01(){
    Building building;
    goodGay(&building);
}

int main(){
    test01();
    return 0;
}